import React from 'react';
import Axios from 'axios'

export default class Curl extends React.Component{

    constructor(props){
        super(props);
        this.abc = "";
        this.getUrlData(props.url)
    
    }

   //请求url
    async  getUrlData(url){
        await   Axios.get(url,{}).then(res => {
                this.abc = {"name":res.data.data.column[0].name};
                this.getData()
            }).catch(error=>{
                console.log("网络错误");
                console.log(error);
            })
        }

  
} 